package norbert.containers {
	import mx.containers.Tile;
	import mx.containers.Canvas;

	public class Drawer extends Tile {
		public var rows: uint = 3;
		public var cols: uint = 3;
		
		public function Drawer() {
			percentWidth = percentHeight = 100;
		}
		
		/* METHODS */
		
		override protected function createChildren(): void {
			super.createChildren();
			
			tileWidth = width / cols;
			tileHeight = height / rows;
			
			for (var i: int = 0; i<cols*rows; ++i) {
				var canvas: Canvas = new Canvas();
				canvas.setStyle("borderStyle", "solid");
				canvas.width = tileWidth;
				canvas.height = tileHeight;
				addChild(canvas);
			}
		}
		
	}
}
